//
//  WDRootSecTableViewCell.m
//  qiJi
//
//  Created by 凤利史 on 2018/3/28.
//  Copyright © 2018年 sunrose. All rights reserved.
//

#import "WDRootSecTableViewCell.h"

@implementation WDRootSecTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:@"identifier"]) {
        
        [self creationView];
    }
    return self;
}
- (void)creationView{
    
    self.imgView1 = [[UIImageView alloc] init];
    [self addSubview:self.imgView1];
    [self.imgView1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).with.offset(25*CHANGE_SIZE);
        make.top.equalTo(self).with.offset(10*CHANGE_SIZE);
        make.width.offset(70*CHANGE_SIZE);
        make.height.offset(55*CHANGE_SIZE);
        
    }];
    self.imgView1.backgroundColor = [UIColor orangeColor];
    
    self.imgView2 = [[UIImageView alloc] init];
    [self addSubview:self.imgView2];
    [self.imgView2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).with.offset(25*CHANGE_SIZE);
        make.top.equalTo(self.imgView1.mas_bottom).with.offset(5*CHANGE_SIZE);
        make.width.offset(70*CHANGE_SIZE);
        make.height.offset(55*CHANGE_SIZE);
        
    }];
    self.imgView2.backgroundColor = [UIColor redColor];
    
    self.imgView3 = [[UIImageView alloc] init];
    [self addSubview:self.imgView3];
    [self.imgView3 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).with.offset(25*CHANGE_SIZE);
        make.top.equalTo(self.imgView2.mas_bottom).with.offset(5*CHANGE_SIZE);
        make.width.offset(70*CHANGE_SIZE);
        make.height.offset(55*CHANGE_SIZE);
        
    }];
    self.imgView3.backgroundColor = [UIColor grayColor];
    
    self.imgView4 = [[UIImageView alloc] init];
    [self addSubview:self.imgView4];
    [self.imgView4 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self).with.offset(-25*CHANGE_SIZE);
        make.top.equalTo(self).with.offset(10*CHANGE_SIZE);
        make.width.offset(70*CHANGE_SIZE);
        make.height.offset(55*CHANGE_SIZE);
        
    }];
    self.imgView4.backgroundColor = [UIColor grayColor];
    
    self.imgView5 = [[UIImageView alloc] init];
    [self addSubview:self.imgView5];
    [self.imgView5 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self).with.offset(-25*CHANGE_SIZE);
        make.top.equalTo(self.imgView4.mas_bottom).with.offset(5*CHANGE_SIZE);
        make.width.offset(70*CHANGE_SIZE);
        make.height.offset(55*CHANGE_SIZE);
        
    }];
    self.imgView5.backgroundColor = [UIColor redColor];
    
    self.imgView6 = [[UIImageView alloc] init];
    [self addSubview:self.imgView6];
    [self.imgView6 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self).with.offset(-25*CHANGE_SIZE);
        make.top.equalTo(self.imgView5.mas_bottom).with.offset(5*CHANGE_SIZE);
        make.width.offset(70*CHANGE_SIZE);
        make.height.offset(55*CHANGE_SIZE);
        
    }];
    self.imgView6.backgroundColor = [UIColor orangeColor];
    
    self.imgView7 = [[UIImageView alloc] init];
    [self addSubview:self.imgView7];
    [self.imgView7 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.imgView5.mas_left).with.offset(-5*CHANGE_SIZE);
        make.top.equalTo(self.imgView1.mas_top).with.offset(27*CHANGE_SIZE);
        make.left.equalTo(self.imgView2.mas_right).with.offset(5*CHANGE_SIZE);
        make.height.offset(120*CHANGE_SIZE);
        
    }];
    self.imgView7.backgroundColor = [UIColor blueColor];
    
    
    
    
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
